﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace StringSecurityTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string str = "TEST";
            textBox1.Clear();

            textBox1.AppendText("md5(TEST)-" + StringSecurity.Encrypt.md5_Encode(str) + "\n\n");
            textBox1.AppendText("sample(TEST)-" + StringSecurity.Encrypt.simple_Encode(str) + "\n\n");
            textBox1.AppendText("symmetry(TEST)-" + StringSecurity.Encrypt.symmetry_Encode(str, "12345678") + "\n\n");
        }
    }
}
